]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tests: Fix JS warning
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Oct 2017 16:10:35 +0000 (18:10 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Oct 2017 16:12:27 +0000 (18:12 +0200)
tests/unit/jsParse.js

index ed550c9b9f33b5a4fd42b9ee6e07c19c1eaa9d62..3814848773435947b99c4685869a78aedc33b712 100644 (file)
@@ -176,7 +176,7 @@ for (let i = 0; i < testsModifyScope.length; i++) {
 
         let matches = text.match(/(.*)\.(.*)/);
         if (matches) {
-            [expr, base, attrHead] = matches;
+            let [expr, base, attrHead] = matches;
 
             if (!JsParse.isUnsafeExpression(base)) {
                 with (obj) {